package com.xdf.wxbebarrel.dao.flux;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.wxbebarrel.model.User;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2022-10-22 13:59:39
 */
@Repository
public interface UserMapper {
    int insert(User record);

    int insertSelective(User record);

    int multiInsert(List<User> list);

    int updateByPrimaryKey(User record);

    int updateByPrimaryKeySelective(User record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer iid);
    // 根据主键查询
    User selectByPrimaryKey(Integer iid);

    List<User> selectAll();

    int save(User record);
    int multiSave(List<User> list);

    User selectBySid(String sid);
    //=================以上是自动生成的代码，自定义代码请写在下面==================

    User selectByOpenId(String openId);

    int deleteByOpenid(String openId);

    List<User> selectAllAuditors();
    List<User> selectMe();
    int setClientRelationship(@Param("userIid") Integer userIid,@Param("millIid") Integer millIid,@Param("role") String role);
}